import * as types from './mutations-types';

const mutations = {
  [types.SET_PLAYING](state, playing) {
    state.playing = playing;
  },
  [types.SET_PLAYLIST](state, playList) {
    state.playList = playList;
  },
  [types.SET_PATTERNLIST](state, patternList) {
    state.patternList = patternList;
  },
  [types.SET_CURRENTINDEX](state, currentIndex) {
    state.currentIndex = currentIndex;
  },
  [types.SET_MODE](state, mode) {
    state.mode = mode;
  },
  [types.SET_SIMILARLIST](state, similarList) {
    state.similarList = similarList;
  },
};
export default mutations;
